package com.train.service;

import com.train.spring.*;

@Component("userService")
@Scope(ScopeType.propertype)
public class UserService implements BeanNameAware ,InitializingBean{
    @Autowired
    private UserService userService;

    private String beanName;

    public void test() {
        System.out.println(userService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {

    }
}
